All Functions of Week 9

relevel

{stats}

Reorder Levels of Factor

rm

{base}

Remove objects

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

ylab

{GGPLOT2}

Label the y axis (ggplot)

ifelse

{base}

Return a or b depending on the value of test

log

{base}

log (default base = e)

confint

{stats}

Calculate confidence Intervals for Model Parameters

xlab

{GGPLOT2}

Label the x axis (ggplot)

mutate

{dplyr}

Modify/create a column in a data frame

with

{base}

evaluate expression in the context of a data frame

lm

{base}

Fit a linear model

as.numeric

{base}

Coerce a vector to numeric

recode

{dplyr}

Recode a variable

geom_point

{GGPLOT2}

Generates a scatter plot

prop.table

{base}

Transform frequency table into table of proportions

levels

{base}

Get levels of a factor

library

{base}

Load an R package

names

{base}

Retrieve names of a list/vector

setwd

{base}

Set Working Directory

droplevels

{base}

Drop Unused Levels from Factors

is.element

{base}

Check if a value is element of a vector

c

{base}

Combine values/vectors into a vector

ggplot

{GGPLOT2}

Create a ggplot graph

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

summary

{base}

Obtain summary statistics or detailed regression output

The end!